package com.maple;

import org.springframework.web.bind.annotation.RequestMapping;

import java.lang.reflect.Method;
import java.util.Arrays;

public class Main {

    public static void main(String[] args) {
        Class<MyWork> clazz = MyWork.class;

        Method[] declaredMethods = clazz.getDeclaredMethods();

        Arrays.stream(declaredMethods).forEach(m -> {
            System.out.println("方法: " + m + ", isBridge :" + m.isBridge() + ", annotation is present :" + m.isAnnotationPresent(RequestMapping.class));

        });
    }
}
